﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Think.Lenovo.Com.Models.Users;
namespace Think.Lenovo.Com
{
    
    public partial class left : System.Web.UI.Page
    {
        public ViewUserModel model ;
        public bool isZongBuGuanLiYuan = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                model = (ViewUserModel)Session["User"];
                if (model != null)
                {
                    if (model.Id < 1)
                    {
                        Response.Redirect("/Login/Index");
                    }
                    if(model.UserRoleId==1)
                    {
                        isZongBuGuanLiYuan = true;
                    }
                }
                else
                {
                    Response.Redirect("/Login/Index");
                }
            }
            catch
            {
                Response.Redirect("/Login/Index");
            }
        }
    }
}